﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="Com.Phyfun.Business.Game, Com.Phyfun.Business" table="Game" lazy="false">
    <id name="Id" type="Int32" unsaved-value="null">
      <column name="Id" length="4" sql-type="int" not-null="true" unique="true" index="PK_Game"/>
      <generator class="native" />
    </id>
    <property name="GameTitle" type="String">
      <column name="GameTitle" length="100" sql-type="nvarchar" not-null="false"/>
    </property>
    <property name="GameDesc" type="String">
      <column name="GameDesc" sql-type="nvarchar" not-null="false"/>
    </property>
    <property name="ThumbSrc" type="String">
      <column name="ThumbSrc" length="200" sql-type="nvarchar" not-null="false"/>
    </property>
    <property name="GameSrc" type="String">
      <column name="GameSrc" length="200" sql-type="nvarchar" not-null="false"/>
    </property>
    <property name="FlagDeleted" type="Boolean">
      <column name="FlagDeleted" length="1" sql-type="bit" not-null="false"/>
    </property>
    <property name="LogDateTime" type="DateTime">
      <column name="LogDateTime" length="8" sql-type="datetime" not-null="false"/>
    </property>
    <property name="Language" type="String">
      <column name="`Language`" length="2" sql-type="char" not-null="false"/>
    </property>
    <property name="SourceId" type="Int32">
      <column name="SourceId" length="4" sql-type="int" not-null="false"/>
    </property>
    <many-to-one name="Category" class="Com.Phyfun.Business.Category, Com.Phyfun.Business">
      <column name="CategoryId" length="4" sql-type="int" not-null="false"/>
    </many-to-one>
    <many-to-one name="Tag" class="Com.Phyfun.Business.Tag, Com.Phyfun.Business">
      <column name="TagId" length="4" sql-type="int" not-null="false"/>
    </many-to-one>
  </class>
</hibernate-mapping>
